<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html; charset=UTF-8" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>

<html>
	<head>
		<title>Card Vault</title>
		
		<script src="<c:url value="/resources/js/jquery-1.8.3.min.js" />"></script>
		<script src="<c:url value="/resources/js/bootstrap.min.js" />"></script>
		<script src="<c:url value="/resources/js/scripts.js" />"></script>
		<link href="<c:url value="/resources/css/normalize.css" />" rel="stylesheet" type="text/css" media="screen"/>
		<link href="<c:url value="/resources/css/bootstrap.min.css" />" rel="stylesheet" type="text/css" media="screen"/>
		<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet" type="text/css" media="screen"/>
	</head>
	<body onload='document.f.j_username.focus();'>
		<div id="wrapper" style="height: 560px;">
			<div class="heading">Card Vault</div>
			<form name="f" class="form-horizontal" style="margin-top: 150px; margin-left: 150px;"
					method="POST" action="<c:url value="/j_spring_security_check" />">
				<div style="margin-left: 93px;">
					<c:if test="${not empty error}">
						<font color="red" class="control-group"><spring:message code="label.loginerror" />
						: ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message} </font>
					</c:if>
				</div>
				<div class="control-group">
					<label class="control-label"  for="inputName">Username:</label>
					<div class="controls">
						<input name="j_username" type="text" id="inputName" placeholder="Your username...">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label" for="inputPassword">Password:</label>
					<div class="controls">
						<input name="j_password" type="password" id="inputPassword" placeholder="Your password...">
					</div>
				</div>
				<div class="control-group">
					<div class="controls">
						<button type="submit" class="btn">Login</button>
					</div>
				</div>
			</form>
			<div class="fixed_block"> 
				<div id="fixed">
					<div class="mainview" align="center">
						<jsp:include page="service/fixed_block.jsp"></jsp:include>
					</div>
				</div> 
			</div>
		</div>
	</body>
</html>